package com.xhl.service;

import com.xhl.entity.Article;
import com.xhl.service.impl.ArticleClientServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
@FeignClient(value = "XHLMR-BLOG-PROVIDER-ARTICLE-8003",fallbackFactory = ArticleClientServiceFallbackFactory.class)
public interface ArticleClientService {
    @RequestMapping("/article/all")
    public List<Article> queryArticleAll();
}
